/**
    商家优惠券池 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewCouponShopPoolInfo:{
                index:0,
                flowComponent:'viewCouponShopPoolInfo',
                spId:'',
poolId:'',
shopId:'',
couponName:'',
actualPrice:'',
stock:'',
validityDay:'',
statusCd:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadCouponShopPoolInfoData();
        },
        _initEvent:function(){
            vc.on('viewCouponShopPoolInfo','chooseCouponShopPool',function(_app){
                vc.copyObject(_app, $that.viewCouponShopPoolInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewCouponShopPoolInfo);
            });

            vc.on('viewCouponShopPoolInfo', 'onIndex', function(_index){
                $that.viewCouponShopPoolInfo.index = _index;
            });

        },
        methods:{

            _openSelectCouponShopPoolInfoModel(){
                vc.emit('chooseCouponShopPool','openChooseCouponShopPoolModel',{});
            },
            _openAddCouponShopPoolInfoModel(){
                vc.emit('addCouponShopPool','openAddCouponShopPoolModal',{});
            },
            _loadCouponShopPoolInfoData:function(){

            }
        }
    });

})(window.vc);
